package com.tz.dream.architect.mvp.login;

import com.tz.dream.architect.mvp.framework.MvpModel;
import com.tz.dream.architect.mvp.utils.HttpUtils;

/**
 * 作者: Dream on 2018/3/9 21:15
 * QQ:510278658
 * E-mail:510278658@qq.com
 */

//M层->具体同事A
public class LoginModel implements MvpModel {

    public void login(String username, String password, final HttpUtils.OnHttpResultListener onHttpResultListener){
//        Map<String, Object> params = new HashMap<>();
//        params.put("username", username);
//        params.put("password", password);
//        new HttpTask.Builder()
//                .method("POST")
//                .url("http://192.168.57.1:8080/Dream_6_2_LoginServer/LoginServlet")
//                .paramMap(params)
//                .onHttpResultListener(new HttpUtils.OnHttpResultListener() {
//                    @Override
//                    public void onResult(String result) {
//                        onHttpResultListener.onResult(result);
//                    }
//                }).build().execute();
    }

}
